import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

/**
 * Created by 14229 on 2020/2/27.
 */
public class Test02 {
    public static void main(String[] args) {

//        1512124554317,1112124554317,112124554317
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入毫秒值");
        Long l = sc.nextLong();
        Date d = new Date(l);
        SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss");
        String format = sim.format(d);
        System.out.println("当前输入的毫秒值所对应的时间为：");
        System.out.println(format);

    }
}
